<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@ taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body bgcolor="#99CCFF">
	<f:view>
		<h:form>
<h:outputText rendered="#{actionBeanFile.fileImport }" value="Number of records imported: " />
			<h:outputText rendered="#{actionBeanFile.fileImport }" value="#{actionBeanFile.numberRows }" />

			<t:dataTable value="#{actionBeanFile.dataBean}" var="rowNumber" 
				rendered="#{actionBeanFile.renderParseTable}" border="1"
				cellspacing="0" cellpadding="1" columnClasses="columnClass1 border"
				headerClass="headerClass" footerClass="footerClass"
				rowClasses="rowClass2" styleClass="dataTableEx" width="800">

				<h:column>
					<f:facet name="header">
						<h:outputText value="variableName" />
					</f:facet>
					<h:outputText value="#{rowNumber.variableName}" />
				</h:column>

				<h:column>
					<f:facet name="header">
						<h:outputText value="SampleValue" />
					</f:facet>
					<h:outputText value="#{rowNumber.dataValue}" />
				</h:column>
				<h:column>
					<f:facet name="header">
						<h:outputText value="DataType" />
					</f:facet>
					<h:outputText value="#{rowNumber.dataType}" />
				</h:column>

				<h:column>
					<f:facet name="header">
						<h:outputText value="DataTypeList" />
					</f:facet>
					<h:selectOneListbox value="#{rowNumber.dataType}" size="4">
						<f:selectItem itemValue="VARCHAR(45)" />
						<f:selectItem itemValue="INTEGER" />
						<f:selectItem itemValue="DOUBLE" />
						<f:selectItem itemValue="DATE" />
					</h:selectOneListbox>
				</h:column>

				<h:column>
					<f:facet name="header">
						<h:outputText value="VariableType" />
					</f:facet>
					<h:outputText value="#{rowNumber.variableType}" />
				</h:column>

				<h:column>
					<f:facet name="header">
						<h:outputText value="VariableTypeList" />
					</f:facet>
					<h:selectOneListbox value="#{rowNumber.variableType}" size="3">
						<f:selectItem itemValue="QUANTITATIVE" />
						<f:selectItem itemValue="CATEGORICAL" />
						<f:selectItem itemValue="COUNT" />
					</h:selectOneListbox>
				</h:column>

			</t:dataTable>

			<br />
			<h:commandButton type="submit" value="Import"
				action="#{actionBeanFile.processDataImport}" />

		</h:form>


	</f:view>
</body>
</html>